<html>
<head>
    <title>添加</title>
    <meta charset="UTF-8">
</head>
<link rel="stylesheet" href="/static/layui/css/layui.css" />
<body>
<form class="layui-form" lay-filter="detail"   action="" >
<!--    <div class="layui-input-inline">-->
<!--        <input type="hidden" name="u_id" id="u_id" lay-verify="required" autocomplete="off" class="layui-input">-->
<!--    </div>-->
    <div class="layui-form-item">
        <label class="layui-form-label">ID：</label>
        <div class="layui-input-inline layui-col-md8">
            <input type="text" name="loid" id="loid"  required  lay-verify="required" placeholder="..." autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">姓名：</label>
        <div class="layui-input-inline layui-col-md7">
            <input type="text" name="loname" id="loname"  required  lay-verify="required" placeholder="..." autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">身份证：</label>
        <div class="layui-input-inline layui-col-md1">
            <input type="text" name="loidcard" id="loidcard"  required  lay-verify="required" placeholder="..." autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">电话：</label>
        <div class="layui-input-inline layui-col-md2">
            <input type="text" name="lotel" id="lotel"  required  lay-verify="required" placeholder="..." autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">时间：</label>
        <div class="layui-input-inline layui-col-md3">
            <input type="text" name="lotime" id="lotime"  required  lay-verify="required" placeholder="..." autocomplete="off" class="layui-input">
        </div>
    </div>
</form>
</body>

<script src="/static/js/system.js"></script>
<script src="/static/js/jquery-3.3.1.js"></script>
<script src="/static/layui/layui.js"></script>
<script>
    $(function () {
        $("input").prop("disabled","disabled");
    })
    layui.use(['form','layer'], function(){
        var form = layui.form;
        $.ajax({
            url:'/LogisticsServlet?method=queryOne',
            type:"post",
            dataType:"json",
            data:{"id":getQueryString("id")},
            success:function (da) {
                if (da.code == 0) {
                    // form.val("detail", da.data);
                    $.each(da.data,function (index,i) {
                        $('#loid').val(i.loid);
                        $("#loname").val(i.loname);
                        $('#loidcard').val(i.loidcard);
                        $('#lotel').val(i.lotel);
                        $('#lotime').val(layui.util.toDateString(i.lotime,'yyyy-MM-dd'));
                    })
                } else {
                    parent.layer.msg("详情查询失败！");
                }
            }
        });
    });
</script>
</html>